package com.alks.function.service;

import com.alks.entity.data.entity.SdDepartment;
import com.alks.entity.data.response.ResponseInfo;
import com.baomidou.mybatisplus.extension.service.IService;

public interface SdDepartmentService extends IService<SdDepartment> {

    /**
     * 查询所有
     * @return
     */
    ResponseInfo FindAll();

    /**
     * 添加
     * @param sdDepartment
     * @return
     */
    ResponseInfo SaveDepartmentInfo(SdDepartment sdDepartment);

    /**
     * 查询单个
     * @param deptNo
     * @return
     */
    ResponseInfo FinDepartmentInfo(String deptNo);

    /**
     * 修改部门
     * @param sdDepartment
     * @return
     */
    ResponseInfo updateWithDepartment(SdDepartment sdDepartment);

    ResponseInfo selectLastCombo(String searchKey);

    ResponseInfo delDepartmentInfo(SdDepartment sdDepartment);
}
